package com.game.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.game.common.base.BaseEntity;
import lombok.Data;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 工作员表 pr_staff
 * 
 * @author game
 * @date 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pr_staff")
public class PrStaff extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/** 登录账号 */
    @TableField("login_name")
	private String loginName;
	/** 用户昵称 */
    @TableField("user_name")
	private String userName;
	/** 密码 */
    @TableField("password")
	private String password;


    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("loginName", getLoginName())
            .append("userName", getUserName())
            .append("password", getPassword())
            .toString();
    }
}
